<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <title>Document</title>
</head>

<body>
    <div id="app">
        <button >add添加</button>
        <ul>
            <li v-for="value of num">
                <p>第{{value}}页码</p>
            </li>
        </ul>
    </div>
    <script>
        const vm = new Vue({
            data(){
                return{
                  num:8
                }
            },
            methods:{
                // addList(){
                //     this.newsList.push({
                //         id:Math.random().toString(8).slice(2),
                //         title:"shijian"+Math.random().toString(8).slice(2)
                //     })
                // }
            }
        }).$mount("#app")
    </script>
</body>

</html>